/*
 * 文件名：OAController.java
 * 版权：Copyright by www.tiansu-china.com/
 * 描述：
 * 修改人：congriran
 * 修改时间：2020年11月26日
 * 跟踪单号：
 * 修改单号：
 * 修改内容：
*/

package com.tiansu.reborn.wanda.modules.executor.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.tiansu.reborn.wanda.modules.executor.entity.OAHandleEntity;
import com.tiansu.reborn.wanda.modules.executor.service.OAHandleService;

@Controller
public class OAHandleController
{
    @Autowired
    private OAHandleService oaHandleService;

    @GetMapping("/oa_handle")
    public String index()
    {
        return "oa_handle";
    }

    @PostMapping("/status_Repair")
    @ResponseBody
    public int statusRepair(String businessId, Integer approveType)
    {
        return oaHandleService.statusRepair(businessId, approveType);
    }

    @PostMapping("/select")
    @ResponseBody
    public OAHandleEntity select(String businessId)
    {
        return oaHandleService.select(businessId);
    }
}
